/*
 *base on jquery 1.4.2 
 */
 
 var tam={
  version:"beta 0.1",
  author:'tabmake.com'
};
tam.toCenter= function(obj) {
  var o = $(obj);
 o.css("display", "block");
    o.css("position", "absolute");
    
    o.css("left", (window.document.body.clientWidth / 2 - o.width() / 2)
        + "px");
    o.css("top", (window.document.body.clientHeight / 2 - o.height() / 2)
        - window.document.body.clientHeight * 0 / 100 + "px");
}

